﻿@model EquipmentManager.Entities.Directorate

@{
    ViewBag.Title = "Добавить новую дирекцию";
}

@section menu {
    <section class="featured">
            <div class="master-menu">
                @{Html.RenderPartial("AdminMenu");}
            </div>
    </section>
}

<h2>Добавить новую дирекцию</h2>

@using (Html.BeginForm("CreateDirectorate", "Admin", FormMethod.Post, new { @class = "" }))
{   
    <table class="bordered">
        <tr>
            <td class="vertical-header">Название</td>
            <td>@Html.EditorFor(model => model.Name, new { @class = "" })</td>
        </tr>
        <tr>
            <td class="vertical-header">Описание</td>
            <td>@Html.EditorFor(model => model.Description, new { @class = "" })</td>
        </tr>
    </table>
    
    @Html.ValidationSummary();

    <p>
        @Html.ActionLink("Отмена", "Directorates", "Admin", new { @class = "common-btn-large BlueColor" }) <input type="submit" value="Добавить" class="common-btn-large BlueColor" />
    </p>
}